package com.ehe.common.core.definition;

/**
 * 自定义正则表达式
 * @author jerry
 */
public class RegularDefinition {

    private RegularDefinition() {
    }

    /** 手机号 */
    public static final String MOBILE_PHONE_NUM = "^$|^1[0-9]{10}$";

    /** 身份证 */
    public static final String ID_CARD = "^$|^[1-9]\\d{5}(18|19|([23]\\d))\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$";
}
